package com.yc.cloud.admin.dto.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yc.cloud.common.basic.dto.BasePageReqDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 摄像头抓图记录分页查询参数
 *
 * @author kinggu
 * @since 2025-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "摄像头抓图记录分页查询参数")
public class HwCameraSnapshotRecordPageReqDto extends BasePageReqDTO {

    @Schema(description = "摄像头ID")
    private Long cameraId;

    @Schema(description = "查询起始日期（格式: yyyy-MM-dd）")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate startDate;

    @Schema(description = "查询结束日期（格式: yyyy-MM-dd）")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate endDate;
}

